<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

	
	<div class="iframe-cot pull-right"  id="smIframe" style="background:#FFFFFF;">
                  
        <div class="right-form">
        	<form id="_query_form" action="" class="form-inline" onsubmit="return false;">
            	<div class="tb_search">
            		<div class="pull-left">
            		  <div class="form-group">
                    	 <label for="appName">应用群组名称：</label>
						 <input type="text"  name="name" id="conditionAppGroupName" value="${fn:escapeXml(name) }" />
                  		 </div>
                    </div>
             	</div>
             </form>
         </div>
         
         <div class="line-e6e"></div>
         
		 <div class="form-top">
		 	<div class="pull-left">
 				<button class="btn btn-default" onclick="layerOpen('${ctx}/appgroup/add','新增应用群组')"><i class="fa fa-plus mr5"></i>新增</button>
 				<button class="btn btn-default" onclick="goUpdate('${ctx}/appgroup/edit/','修改应用群组信息')"><i class="fa fa-pencil mr5"></i>编辑</button>
 				<button class="btn btn-default" onclick="deleteBatch('${ctx}/appgroup/delete')"><i class="fa fa-times mr5"></i>删除</button>
            </div>
            <div class="pull-right">
            	<a class="btn btn-orange" onclick="jumpPage('1')"><i class="fa fa-search mr5"></i>查询</a>
                <a class="btn btn-blue" onclick="clearForm('#_query_form')"><i class="fa fa-trash-o mr5"></i>清空</a>
            </div>
          </div>
          
          <div class="table-scroll">    
          <table id="_list_table" class="table-form table-bordered table-hover table-ellipsis table-fixed">
          		<thead>
                	<tr>
                    	<th width="5%"><input type="checkbox" name="checkboxall" id="fullCheck" onclick="listTableCheckAll(this)" /></th>
                        <th width="5%">序号</th>
						<th>应用群组名称</th>
						<th>描述</th>
                   	</tr>
                 </thead>
                 <tbody>
                 	<c:if test="${ empty pageBean.data}">
                          <tr><td colspan="4">无符合条件数据</td></tr>
                    </c:if>
                    <c:if test="${not empty pageBean.data}">
                          <c:forEach items="${pageBean.data}" var="ag" varStatus="seq">
                          	<tr>
                          		<td><input type="checkbox" name="checkboxOne"  value="${ag.id }"/></td>
                          		
                          		<td>${seq.count+pageBean.first}</td>
                    
                          		<td class="text-left" title="${ag.name}">${ag.name}</td>
                          
                          		<td class="text-left" title="${ag.description }">${ag.description }</td>

                          	</tr>
                          </c:forEach>    
                     </c:if>                    
                   </tbody>
           </table>
           </div>

           <jsp:include page="../common/pager.jsp"></jsp:include>
                
              </div>
          <!--main end--> 

      
 <script type="text/javascript">
 currentPageNo = parseInt('${pageBean.currentPage}');
 currentPageSize = parseInt('${pageBean.pageSize }');
 totalPageCount = parseInt('${pageBean.totalPage}');
 queryUrl = '${ctx}/appgroup/list';
 
 </script>